<?php
namespace App\Models;


/**
 * Model SchoolUser
 *
 * @property int $id
 * @property int $user_id
 * @property int $campus_id
 * @property int $school_id
 * @property string $teacher_name
 * @property int $sex
 * @property string $phone
 * @property string $address
 * @property string $identity
 * @property int $birthday
 * @property int $entry_at
 * @property string $created_at
 * @property string $updated_at
 * @property string $deleted_at
 *
 * @method static \Illuminate\Database\Query\Builder | \App\Models\SchoolUser where($column, $operator = null, $value = null, $boolean = 'and')
 * @method static \Illuminate\Database\Query\Builder | \App\Models\SchoolUser whereIn($column, $values, $boolean = 'and', $not = false)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\SchoolUser leftJoin($table, $first, $operator = null, $second = null)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\SchoolUser rightJoin($table, $first, $operator = null, $second = null)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\SchoolUser get($columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\SchoolUser paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\SchoolUser find($id, $columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\SchoolUser first($columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\SchoolUser select($columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\SchoolUser orderBy($column, $direction = 'asc')
 * @package App\Model
 */
class SchoolUser extends BaseModel
{
    protected $table = 'school_user';

    protected $fillable = ["user_id", 'campus_id', 'school_id', 'teacher_name', 'sex', 'phone', 'address', 'identity', 'birthday', 'entry_at'];

    public function school()
    {
        return $this->belongsTo(School::class);
    }

}
